package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingLevelPrice;
import com.api.shopapi.mapper.NursingLevelPriceMapper;
import com.api.shopapi.service.NursingLevelPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author maochuan
 */
@Service("NursingLevelPriceServiceImplOne")
public class NursingLevelPriceServiceImpl implements NursingLevelPriceService {
    @Autowired
    private NursingLevelPriceMapper nursingLevelPriceMapper;


    @Override
    public int insert(NursingLevelPrice nursingLevelPrice) {
        return nursingLevelPriceMapper.insert(nursingLevelPrice);
    }

    @Override
    public int updateByNursingLevelPriceCode(NursingLevelPrice nursingLevelPrice) {
        return nursingLevelPriceMapper.updateByNursingLevelPriceCode(nursingLevelPrice);
    }

    @Override
    public NursingLevelPrice getByNursingLevelCodeAndCalculationType(String nursingLevelCode, String calculationType) {
        return nursingLevelPriceMapper.getByNursingLevelCodeAndCalculationType(nursingLevelCode,calculationType);
    }

    @Override
    public List<NursingLevelPrice> getListAllByNursingLevelCode(String nursingLevelCode) {
        return nursingLevelPriceMapper.getListAllByNursingLevelCode(nursingLevelCode);
    }

    @Override
    public NursingLevelPrice getByNursingLevelPriceCode(String nursingLevelPriceCode) {
        return nursingLevelPriceMapper.getByNursingLevelPriceCode(nursingLevelPriceCode);
    }

}
